package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店管理对象 bus_store_info
 *
 * @author 小陈
 * @date 2022-11-24
 */
@Getter
@Setter
@TableName("bus_store_info")
public class StoreInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    public static final Integer STORE_INFO_OPEN = 0;
    public static final Integer STORE_INFO_CLOSE = 1;
    public static final Integer STORE_INFO_DEAD = 2;
    /** 主键 */
    @Excel(name = "主键")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 门店名称 */
    @Excel(name = "门店名称")
    @TableField("name")
    private String name;

    /** 门店介绍 */
    @Excel(name = "门店介绍")
    @TableField("intro")
    private String intro;

    /** 经营范围 */
    @Excel(name = "经营范围")
    @TableField("business_scope")
    private String businessScope;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @TableField("contact")
    private String contact;

    /** 门店地址 */
    @Excel(name = "门店地址")
    @TableField("address")
    private String address;

    /** 开店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开店时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("opening_time")
    private Date openingTime;

    /** 闭店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "闭店时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("closing_time")
    private Date closingTime;

    /** 管理员id */
    @Excel(name = "管理员id")
    @TableField("manager_id")
    private Long managerId;

    /** 管理员名称 */
    @Excel(name = "管理员名称")
    @TableField("manager_name")
    private String managerName;

    /** 管理员手机号 */
    @Excel(name = "管理员手机号")
    @TableField("manager_tel")
    private String managerTel;

    /** 状态: 0=营业中, 1=闭店, 2=删除 */
    @Excel(name = "状态: 0=营业中, 1=闭店, 2=删除")
    @TableField("status")
    private Integer status;

    /** 创建人id */
    @Excel(name = "创建人id")
    @TableField("creator_id")
    private Long creatorId;

    /** 创建时间 */

    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /** 更新人员id */
    @Excel(name = "更新人员id")
    @TableField("updator_id")
    private Long updatorId;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("intro", getIntro())
            .append("businessScope", getBusinessScope())
            .append("contact", getContact())
            .append("address", getAddress())
            .append("openingTime", getOpeningTime())
            .append("closingTime", getClosingTime())
            .append("managerId", getManagerId())
            .append("managerName", getManagerName())
            .append("managerTel", getManagerTel())
            .append("status", getStatus())
            .append("creatorId", getCreatorId())
            .append("createdTime", getCreatedTime())
            .append("updatorId", getUpdatorId())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
